<template>
	<web-view :webview-styles="webviewStyles" :src="src"></web-view>
</template>

<script setup>
	import {ref} from "vue";
	import * as uniapp from "@dcloudio/uni-app";
	
	const src = ref('');
	const webviewStyles = ref({
		progress:{
			color: '#d81e06'
		}
	})
	
	uniapp.onLoad(option => {
		src.value = decodeURIComponent(option.url)
	})
</script>

<style>

</style>
